package com.gz.dto;

import java.io.Serializable;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.StringUtils;
import com.gz.utils.DataFmtUtil;

/**
 * 学生题目标签权重表(StudentQuestionTagWeights)实体参数类
 *
 * @author jhk
 * @since 2024-09-11 20:55:57
 */
@Data
@ApiModel("学生权重实体参数类")
public class StudentQuestionTagWeightsDto extends PageInfoDto implements Serializable {
    private static final long serialVersionUID = -34808456059519834L;
    @ApiModelProperty("主键")
    private Integer id;
    @ApiModelProperty("学生id")
    private Integer studentId;
    @ApiModelProperty("学生账号")
    private String username;
    @ApiModelProperty("真实姓名")
    private String realName;
    @ApiModelProperty("标签名称")
    private String labelName;
    @ApiModelProperty("标签id")
    private Integer tag;
    @ApiModelProperty("权重")
    private Integer errorWeight;
    @ApiModelProperty("排序字段")
    private String orderField;
    @ApiModelProperty("排序类型")
    private String orderType;

    public String getOrderField() {
        if (!StringUtils.isEmpty(orderField)) {
            return DataFmtUtil.xX2x_x(orderField);
        }
        return orderField;
    }
}

